<template>
	<view class="body">
		<view class="list" v-for="(item,index) in list" :key="index">
			<view class="list_left">
				<view class="list_left_top">{{item.createdTime}}</view>
				<view class="list_left_bottom">{{item.status==-1?'审核拒绝':''}}{{item.status==0?'待审核':''}}{{item.status==1?'审核通过待转账':''}}{{item.status==2?'已转账':''}}</view>
			</view>
			<view class="list_right">-{{item.applyAmount}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'InviteWelfare', // 页面名称
		components: {}, // 挂载组件
		props: {}, // 组件传值
		data() {
			return {
				list:null
			}
		},
		onLoad(options) {
			var that = this;
			this.$u.api.PostList({
				pageNum:1,
				pageSize:1000
			}).then((res) => {
				console.log(res);
				that.list = res.data.list;
			})
		}, 
		methods: {
			
		}
	}
</script>

<style lang="scss">
	page{
		.list{
			width: 100%;
			height: 120rpx;
			box-sizing: border-box;
			padding: 0 30rpx;
			padding-top: 10rpx;
			background: #FFFFFF;
			margin-bottom: 20rpx;
			display: flex;
			.list_left{
				flex: 1;
				view{
					height: 50rpx;
					line-height: 50rpx;
				}
			}
			.list_right{
				flex: 0 0 150rpx;
				height: 100rpx;
				line-height: 100rpx;
				text-align:right;
			}
		}
	}
</style>